<template>
	<view class="experience-box">
		<view class="experience" :class="position_null?'warn':''" @click="position_null=false">
			<view class="title">
				案例名称
				<text style="color: red;">*</text>
			</view>
			<input placeholder="请输入" border="none" v-model="form.position" style="text-align: right;"></input>
		</view>
		<view class="experience" @click="jumpclassification()">
			<view class="title">
				案例类型
			</view>
			<view class="choose-box">
				<view class="name">
					<text class="input-box" v-if="form.type_text">{{form.type_text}}</text></text> <text
						v-else>请选择案例类型</text>
				</view>
				<i class="iconfont fontclassarrow_right"></i>
			</view>
		</view>
		<view class="content">
			<view class="title">
				案例图片
			</view>
			<view class="right-box">
				<view class="license-no" v-if="!from.license" @click="addImgebnt()">
					<text>+</text>
				</view>
				<view class="license" v-for="(item, index) in form.image_list" :key="index">
					<image :src="item" class="img" @click="delImgebnt(index)" />
				</view>

			</view>
		</view>
		<view class="content" :class="txt_null?'warn':''" @click="txt_null=false">
			<view class="title">
				案例介绍
				<text style="color: red;">*</text>
			</view>
			<view class="textarea-box">
				<textarea style="width: 100%;" maxlength="-1" v-model="form.txt" placeholder="请输入案例介绍"></textarea>
			</view>
		</view>
		<view class="delete-box" v-if="deleteShow">
			<view class="delete-bnt" @click="deleteBnt">删除</view>
			<view class="add-btn" @click="ok_form()">保存</view>
		</view>
		<view class="btn" @click="ok_form()" v-else>保存</view>
	</view>
</template>

<script src="./page.js"></script>

<style scoped lang="scss">
	@import "./page.scss";
</style>